home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5817 / 5817.xpi / chrome / content / udf.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  6KB  |  129 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://sqlitemanager/skin/sqlitemanager.css" type="text/css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://sqlitemanager/locale/udf.dtd">
  6. <!-- all id should begin with udf -->
  7. <overlay id="udfOverlay"
  8.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  9.  
  10. <tabpanel id="udfTabpanel" flex="1">
  11.   <notificationbox id="udfNotifyBox" flex="1">
  12.   <hbox id="udfStatus" hidden="true">
  13.     <label id="udfStatusLabel" style="background-color: #ffff66;padding-top:2px;"/>
  14.     <button label="Cancel Operation" oncommand="SmUdf.handleImportCompletion(0);"/>
  15.   </hbox>
  16.   <vbox flex="100">
  17.     <!-- hbox for udf db dir selection-->
  18.     <hbox>
  19.       <textbox id="udfDbDirPath" flex="1" readonly="true"/>
  20.       <button id="udfDbDirPathButton" label="&udf.selectDir;" accesskey="&udf.selectDir.ak;" oncommand="SmUdf.selectUdfDir();"/>
  21.       <button id="udfReloadFuncButton" label="&udf.reloadFunctions;" oncommand="SmUdf.reloadFunctions();"/>
  22.     </hbox>
  23.  
  24.     <tabbox flex="1">
  25.       <tabs id="udfTabs" onselect="SmUdf.onSelectTab();">
  26.         <tab id="udfTabFunc" class="exportTabs"  linkedpanel="udfPanelFunc" label="&udf.simpleFunctions;" persist="selected"/>
  27.         <tab id="udfTabAggFunc" class="exportTabs"  linkedpanel="udfPanelAggFunc" label="&udf.aggFunctions;" persist="selected"/>
  28.       </tabs>
  29.       <tabpanels flex="100">
  30.         <tabpanel id="udfPanelFunc" flex="1">
  31.           <vbox flex="1">
  32.           <deck id="udf-d-simple">
  33.           <vbox id="udfVbFuncView" flex="1">
  34.             <hbox>
  35.               <label style="padding-top:3px" control="udfFuncMenuList" value="Function Names :"/>
  36.               <menulist id="udfFuncMenuList" oncommand="SmUdf.onSelectFuncName(false)"/>
  37.               <button id="udfBtnFuncEdit" label="&udf.editFunction;" oncommand="SmUdf.editFunction()" disabled="true"/>
  38.               <button id="udfBtnFuncDelete" label="&udf.deleteFunction;" oncommand="SmUdf.deleteFunction()" disabled="true"/>
  39.               <button label="&udf.addFunction;" oncommand="SmUdf.addFunction()"/>
  40.             </hbox>
  41.             <description id="udfViewFuncHead" style="white-space: pre-wrap;" />
  42.             <description id="udfViewFuncBody" style="white-space: pre-wrap;padding-left:10px;" />
  43.             <description id="udfViewFuncTail" style="white-space: pre-wrap;" />
  44.             <description flex="100" />
  45.           </vbox>
  46.           <vbox id="udfVbFuncEdit" hidden="true" flex="1">
  47.             <hbox>
  48.               <label class="forControl" value="&udf.funcName;"/>
  49.               <textbox id="udfNewFuncName" style="width:150px"/>
  50.               <label class="forControl" value="&udf.funcArgLength;"/>
  51.               <textbox id="udfNewFuncArgLength" type="number" min="-1" style="width:60px"/>
  52.               <toolbarbutton class="tbb_questionmark" oncommand="SmUdf.showHelp('newFunctionArgLength')"/>
  53.               <checkbox id="udfNewFuncEnabled" label="Enabled"/>
  54.             </hbox>
  55.             <hbox>
  56.               <label class="forControl" value="&udf.funcBody;"/>
  57.               <toolbarbutton class="tbb_questionmark" oncommand="SmUdf.showHelp('newFunctionBody')"/>
  58.             </hbox>
  59.             <hbox>
  60.               <textbox id="udfNewFuncBody" multiline="true" rows="10" flex="1"/>
  61.             </hbox>
  62.             <hbox>
  63.               <button label="Cancel" oncommand="SmUdf.cancelEditSimple();"/>
  64.               <button label="&udf.saveFunction;" oncommand="SmUdf.saveFunction();"/>
  65.             </hbox>
  66.           </vbox>
  67.           </deck>
  68.           </vbox>
  69.         </tabpanel>
  70.  
  71.         <tabpanel id="udfPanelAggFunc" flex="1">
  72.           <vbox flex="1">
  73.           <deck id="udf-d-aggregate">
  74.           <vbox id="udfVbAggFuncView" flex="1">
  75.             <hbox>
  76.               <label style="padding-top:3px" control="udfAggFuncMenuList" value="Function Names :"/>
  77.               <menulist id="udfAggFuncMenuList" oncommand="SmUdf.onSelectFuncName(true)"/>
  78.  
  79.               <button id="udfBtnAggFuncEdit" label="&udf.editFunction;" oncommand="SmUdf.editAggFunction()" disabled="true"/>
  80.               <button id="udfBtnAggFuncDelete" label="&udf.deleteFunction;" oncommand="SmUdf.deleteAggFunction()" disabled="true"/>
  81.               <button label="&udf.addFunction;" oncommand="SmUdf.addAggFunction()"/>
  82.             </hbox>
  83.             <description id="udfViewAggFuncHead" style="white-space: pre-wrap;" />
  84.             <description id="udfViewAggFuncBody" style="white-space: pre-wrap;padding-left:10px;" />
  85.             <description id="udfViewAggFuncTail" style="white-space: pre-wrap;" />
  86.           </vbox>
  87.           <vbox id="udfVbAggFuncEdit" hidden="true" flex="1">
  88.             <hbox>
  89.               <label class="forControl" value="&udf.funcName;"/>
  90.               <textbox id="udfNewAggFuncName" style="width:150px"/>
  91.               <label class="forControl" value="&udf.funcArgLength;"/>
  92.               <textbox id="udfNewAggFuncArgLength" type="number" min="-1" style="width:60px"/>
  93.               <toolbarbutton class="tbb_questionmark" oncommand="SmUdf.showHelp('newFunctionArgLength')"/>
  94.               <checkbox id="udfNewAggFuncEnabled" label="Enabled"/>
  95.             </hbox>
  96.             <hbox>
  97.               <label class="forControl" value="&udf.funcOnStepBody;"/>
  98.               <toolbarbutton class="tbb_questionmark" oncommand="SmUdf.showHelp('newFunctionOnStepBody')"/>
  99.             </hbox>
  100.             <hbox>
  101.               <textbox id="udfNewAggFuncOnStepBody" multiline="true" rows="6" flex="1"/>
  102.             </hbox>
  103.             <hbox>
  104.               <label class="forControl" value="&udf.funcOnFinalBody;"/>
  105.               <toolbarbutton class="tbb_questionmark" oncommand="SmUdf.showHelp('newFunctionOnFinalBody')"/>
  106.             </hbox>
  107.             <hbox>
  108.               <textbox id="udfNewAggFuncOnFinalBody" multiline="true" rows="6" flex="1"/>
  109.             </hbox>
  110.             <hbox>
  111.               <button label="Cancel" oncommand="SmUdf.cancelEditAggregate();"/>
  112.               <button label="&udf.saveFunction;" oncommand="SmUdf.saveAggFunction();"/>
  113.             </hbox>
  114.           </vbox>
  115.           </deck>
  116.           </vbox>
  117.         </tabpanel>
  118.  
  119.       </tabpanels>
  120.     </tabbox>
  121.  
  122.     <hbox>
  123.       <button label="&udf.closeTab;" style="color:red;" oncommand="SQLiteManager.closeTab();"/>
  124.     </hbox>
  125.   </vbox>
  126. </notificationbox>
  127. </tabpanel>
  128. </overlay>
  129.